import { defHttp } from '/@/utils/http/axios';
import { AccountListGetResultModel } from './model/systemModel';

export const getRegion = () =>
  defHttp
    .get<AccountListGetResultModel>({
      url: '/admin/district-tree/GetRegionTree',
    })
    .then((x) => x);
//获取核验房屋情况
export const HcHourseList = (params: any) =>
  defHttp.get({
    url: '/hchourse/HcHourseList',
    params: { ...params },
  });


export const basicHouseGqList = (params: any) =>
  defHttp.get({
    url: '/basicHouse/basicHouseGqList',
    params: { ...params },
  });
export const basicHouseTownList = (params: any) =>
  defHttp.get({
    url: '/basicHouse/basicHouseTownList',
    params: { ...params },
  });
export const basicHouseVillageList = (params: any) =>
  defHttp.get({
    url: '/basicHouse/basicHouseVillageList',
    params: { ...params },
  });
export const HouseList = (params: any) =>
  defHttp.get({
    url: '/common/HouseFloorDetail',
    params: { ...params },
  });
export const hourseinfo = (params: any) =>
  defHttp.get({
    url: '/common/hourseinfo',
    params: { ...params },
  });
export const HcHourseByNickNameList = (params: any) =>
  defHttp.get({
    url: '/common/HcHourseList',
    params: { ...params },
  });
//双通道达标情况
export const HouseStdList = (params: any) =>
  defHttp.get({
    url: '/targeted/HouseStdList',
    params: { ...params },
  });
export const HousetownStdList = (params: any) =>
  defHttp.get({
    url: '/targeted/HouseTownStdList',
    params: { ...params },
  });
export const HousevillageStdList = (params: any) =>
  defHttp.get({
    url: '/targeted/HouseVillageStdList',
    params: { ...params },
  });
export const getDCPHourseByList = (params: any) =>
  defHttp.get({
    url: '/targeted/std/getHourseByList',
    params: { ...params },
  });
export const getUserByList = (params: any) =>
  defHttp.get({
    url: '/targeted/std/getUserByList',
    params: { ...params },
  });
//抽样任务管理

export const getYearRound = () =>
  defHttp.get({
    url: '/task/getYearRound',
  });

  export const getNewRound = (params: any) =>
  defHttp.get({
    url: '/task/getNewRound',
    params: { ...params },
  });

export const getTasklist = (params: any) =>
  defHttp.get({
    url: '/task/tasklist',
    params: { ...params },
  });

  export const getCqInfo = (params: any) =>
  defHttp.get({
    url: '/task/getCqInfo',
    params: { ...params },
  });

  export const getZulist = (params: any) =>
  defHttp.get({
    url: '/task/getZulist',
    params: { ...params },
  });

export const getRenYuanlist = (params: any) =>
  defHttp.get({
    url: '/task/getRenYuanlist',
    params: { ...params },
  });
export const saveTask = (params: any) =>
  defHttp.get({
    url: '/task/saveTask',
    params: { ...params },
  });
export const gethousingearlyList = (params: any) =>
  defHttp.get({
    url: '/targeted/housingearlyList',
    params: { ...params },
  });
export const getTaskHouseList = (params: any) =>
  defHttp.get({
    url: '/task/getTaskHouseList',
    params: { ...params },
  });
export const getBhglist = (params: any) =>
  defHttp.get({
    url: '/task/bhglist',
    params: { ...params },
  });


export const getHcHourseMxDetail = (params: any) =>
  defHttp.get({
    url: '/hc/evolvestatic/getHcHourseMxDetail',
    params: { ...params },
  });
export const getJcHourseMxDetail = (params: any) =>
  defHttp.get({
    url: '/village/evolvestatic/getJcHourseMxDetail',
    params: { ...params },
  });
export const getTaskCunList=(params: any) =>
  defHttp.get({
    url: '/task/getTaskCunList',
    params: { ...params },
  });
  export const deleteTask=(params: any) =>
  defHttp.get({
    url: '/task/deteleTask',
    params: { ...params },
  });
 export const getXZList=(params: any) =>
  defHttp.get({
    url: '/task/getXZList',
    params: { ...params },
  });

